<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<script>
	function count2(){
		var t=parseInt(text1.value);
		if(t>1){
			text1.value=t-1;
		}
	}
	function count1(){
		var x=parseInt(text1.value);
		if(x<9999){
			text1.value=x+1;
		}
	}
	</script>
	
<div class="row">
	<img alt="img" src="./img/icon1.gif"><a href="./list.htm">返回</a>
</div>
<div class="row">
	<div class="col-md-12"
			style="background-image: url('./img/top01.gif'); background-repeat: repate-x; height: 25px">
	</div>
</div>
<div class="row">
	<center>
		<h1>${title.title}</h1>
	</center>
</div>


<div class="row">
	<div class="col-md-2"></div>

	<div class="col-md-3">
		<img alt="img" src="./img/${title.imageFile}">
	</div>
	<div class="col-md-3">
		<p>图书编号：</p>
		<p>价格：</p>
		<p>版本号：</p>
		<p>版权：</p>
		<hr>
		<div class="row">
			<div class="col-md-7">
				<form action="addgoodstocars.do" id="form1">
					购买数量： <br> <br>
				</form>
			</div>
		</div>
	</div>

	<div class="col-md-3">
		<p>${title.isbn }</p>
		<p>￥${title.price}</p>
		<p>${title.publisherId}</p>
		<p>${title.copyright}</p>
		<hr>
		<div class="row">
			<div class="col-md-12">
				<form action="./user/addtocart.do" method="post">
					<input type="button" name="button2" value="-" onclick="count2()">
					<input type="text" style="border-weight: 100px; width: 30px;"
						name="count" value="1" id="text1" /> <input type="hidden"
						name="isbn" value="${title.isbn}"> <input type="hidden"
						name="title" value="${title.title}"> <input type="hidden"
						name="price" value="${title.price}"> <input type="button"
						name="button1" value="+" onclick="count1()"> <br> <br>
					<button type="submit" class="btn btn-success">加入购物车</button>
				</form>
			</div>
		</div>
	</div>
</div>
